// 静态方法装饰器和writable
{
  const showDecorator: MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor) => {
    descriptor.value = () => {
      console.log('方法体重写');
    }
    descriptor.writable = false;
  }
  class User {
    @showDecorator
    public static show() {
      console.log('我是show方法体');

    }
  }
  User.show()
  //因为设置了writable为false，不能被重写了 ，下面这个代码会报错
  User.show = () => {
    console.log('我想再次重写');
  }
}
